<template>
   <el-card class="box-card">
    <!--  标题 -->
  <div slot="header" class="clearfix">
    <!-- <slot name="text"></slot> -->
    <span>{{title}}</span>
    <slot name="btn"></slot>
  </div>
  <!-- 内容 -->
<slot name="content"></slot>
</el-card>
</template>

<script>
    export default {
        props:{
          title:{
            type:String,
            default:''
          }
        },
    }
</script>

<style lang="less" scoped>
.text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }
.clearfix{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
  .clearfix:before,
  .clearfix:after {
    display: table;
    // content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 100%;
  }
</style>